package com.huluobo.base.db

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.huluobo.base.bean.LoginBean

/**
 *  Created by LC on 2024/9/3.
 */
@Dao
interface UserDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    fun insertUserInfo(userBean: LoginBean)

    @Update
    fun updateUserInfo(userBean: LoginBean)

    @Delete
    fun deleteUserInfo(userBean: LoginBean)

    @Query("select * from user_info where uName = :username")
    suspend fun queryUserInfo(username:String):LoginBean
}